package pro.cherish.quartzlockdemo.da;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 创建人：lys
 * @version 版本号：V1.0
 * <p>
 * ***************************修订记录************************************
 * 2020-08-08 lys 创建该类功能。
 * **********************************************************************
 * </p>
 * @ClassName 类名：GiveBack
 * @Description 功能说明：
 * <p>
 *
 * </p>
 * **********************************************************************
 * @date 创建日期： 2020-08-08 lys
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class GiveBack {
    private String code;
    private String message;
    private Object date;

    public static GiveBack make(String code, String message, Object data) {
        GiveBack giveBack = new GiveBack(code, message, data);
        return giveBack;
//        return JSONObject.toJSONString(giveBack);

    }
}
